﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Enterprise.Infrastructure;
using Enterprise.Model.WorkFlow;
using Enterprise.Service.WorkFlow;
namespace Enterprise.UI.Web.Manage.WorkFlow
{
    public partial class DetailShow : System.Web.UI.Page
    {
        protected int Id = (int)Utility.sink("Id", Utility.MethodType.Get, 0, 0, Utility.DataType.Int);
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                OnStart();
            }
        }

        private void OnStart()
        {
            OnBindWorkFlow();
        }

        private void OnBindWorkFlow()
        {
            if (Id == 0)
                return;

            WorkFlowInfoService wService = new WorkFlowInfoService();
            var q = wService.WorkFlowDisp(Id);
            if (q != null)
            {
                lb_Name1.Text = q.WFNAME;
            }
        }

    }
}